package com.ymatou.iapi.productmanager.service;

import java.util.Map;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;
import com.ymttest.utils.compare.CallAPI;

public class GetProductViolateRemarksCall extends YmatouAutoTestCall implements CallAPI{

	private static String opurl ="/api/SellerProduct/GetProductViolateRemarks";
	
	public GetProductViolateRemarksCall(String systemUrl) {
		super(systemUrl,opurl,"GET","JSON");
	}
	
	public GetProductViolateRemarksCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"GET","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}

	
	public JSONObject call(String productId){
		return this.callAndGetReturnData(MapUtil.hashMap("ProductId",productId));
	}
	
	
	@Override
	public JSONObject callAndReturn(Map<String, Object> paramMap) {
		return this.call(paramMap.get("productId").toString());
	}
	@Override
	public String getApiName() {
		return "GetProductViolateRemarksCall";
	}
	
	
	public static void main(String[] args) {
		new GetProductViolateRemarksCall().callAndReturn(MapUtil.hashMap("productId","20912427-a975-4656-8eab-bf1647ed0b60"));
	}
	
	
	
	
	
	
	

	
	
}
